package org.jeecg.modules.geo.service;

import cn.hutool.http.HttpRequest;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.geo.entity.BimGeoApi;
import org.jeecg.modules.geo.entity.BimGeoApp;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Description: bim_geo_api
 * @Author: jeecg-boot
 * @Date: 2022-12-05
 * @Version: V1.0
 */
public interface IBimGeoApiService extends IService<BimGeoApi> {


    IPage<BimGeoApi> pageList(IPage<BimGeoApi> page, Wrapper<BimGeoApi> queryWrapper);

    void add(BimGeoApi bimGeoApi);

    BimGeoApi find(Integer appId, String path);

    void update(BimGeoApi bimGeoApi);


    List<BimGeoApi> findList(Integer appId, Integer apiType, Integer dataType);

    BimGeoApi find(Integer appId, Integer apiType, Integer dataType);

    HttpRequest getRequest(Integer appId, Object requestParam);

    HttpRequest getRequest(BimGeoApp bimGeoApp, BimGeoApi bimGeoApi, Object requestParam);

    BimGeoApi findForBusinessType(Integer appId, String businessType);


    /**
     * 查询应用下api
     *
     * @param appId
     * @return
     */
    List<BimGeoApi> geoApiByApp(Integer appId, Integer apiId);


}
